package com.cloud.pole.msg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.cloud.pole.msg.biz.SmsSendHisBiz;
import com.cloud.pole.msg.model.entity.SmsSendHisAdmin;
import com.cloud.pole.msg.service.SmsSendHisService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service(value = "smsSendHisService")
@EnableTransactionManagement
public class SmsSendHisServiceImpl implements SmsSendHisService {

	@Autowired
	private SmsSendHisBiz smsSendHisBiz;

	@Override
	public PageInfo<SmsSendHisAdmin> selectPageSysSmsSendHisAdminList(Map<String, Object> map, int pageNo, int pageSize) {
		PageHelper.startPage(pageNo, pageSize); 
    	List<SmsSendHisAdmin> list = smsSendHisBiz.selectPageSysSmsSendHisAdminList(map);
    	PageInfo<SmsSendHisAdmin> page = new PageInfo<SmsSendHisAdmin>(list);
    	return page;
	}

}
